export function buildName (firstName: string, lastName?: string) {
  const str = `${firstName} ${lastName}`
  console.log(`buildName: ${str}`)
  return str
}

export function buildName2 (firstName: string, lastName = 'smith') {
  const str = `${firstName} ${lastName}`
  console.log(`buildName2: ${str}`)
  return str
}

export const buildName3: (name:string) => string = (name) => {
  console.log(name)
  return name
}
